<%@ page language="java" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>
      index
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
    <meta http-equiv="description" content="This is my page" />
    <style type="text/css">
      body { background-color:#fff; color:#48b9ef; padding:10px 0 10px 0; font-family: Arial, Helvetica, sans-serif;
      font-size: 13px; text-align:center; }
    </style>
    <script type="text/javascript">
      function doSubmit(){
        authKey = document.getElementById('authKey').value;
        if(authKey == ""){
          alert("请先获取授权码");
          return
        }
        getSessionUrl = document.getElementById('getSessionUrl').value;
        getSessionUrl = getSessionUrl + '?authcode=' + authKey;
        window.location.href = getSessionUrl;
      }
    </script>
  </head>
  <jsp:useBean id="demoConstant" class="com.taobao.top.demo.common.DemoConstant" scope="request">
  </jsp:useBean>
  <body>
    <h2>
      添加销售属性Demo
    </h2>
    <input type="hidden" id="getSessionUrl" name="getSessionUrl" value="<%=demoConstant.GET_SESSION_URL %>"/>
    <input id="authKey" name="authKey"  style='width:600px'/>
    <input type="button" name="getItem" id="getItem" value="提交" onclick="doSubmit();"/>
    <br/>
    <br/>
    
<%--    <iframe 
        style="border:0;"
        id="appTestIframe"
        width="1200px"
        height="600px"
         src="http://my.open.taobao.com/auth/authorize.htm?appkey=<%=demoConstant.APP_KEY %>">
    </iframe>
--%>  </body>
</html>

